<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-once 指令</title>
  <script src="../../../../js/vue.global.js"></script>
</head>
<body>
<div id="root">
  <h1>{{ message }}</h1>
  <h1 v-once>{{ message }}</h1>
</div>

<script type="text/javascript">
  const app = Vue.createApp({
    data(){
      return {
        message: "Hello, World!",
      }
    }
  })
  app.mount("#root")
</script>
</body>
</html>